﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.EF;
using Model;

public partial class System_Role_Role : System.Web.UI.Page
{
    public string rel = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            IRepository<SystemRole> RoleRepository = new EntityRepository<SystemRole>();
            IList<SystemRole> list = RoleRepository.FindAll().ToList();

            rel = Request.QueryString["rel"].ToString();

            RoleRpt.DataSource = list;
            RoleRpt.DataBind();
        }
    }
}